package com.supers.pojo;

import org.apache.http.conn.routing.HttpRoute;

import com.supers.enums.Charset;
import com.supers.enums.Method;

/* *
 *类名：HttpRequest
 *功能：Http请求对象的封装
 *详细：封装Http请求
 *版本：3.3
 *日期：2011-08-17
 *说明：
 */

public class HttpRequest {

    /**
     * 待请求的url
     */
    private String url;

    /**
     * 默认的请求方式
     */
    private String method;
    /**
     * Post方式请求时對象参数
     */
    private Object postParam;

    /**
     * 单独为某个站点设置最大连接个数 
     */
    private HttpRoute httpRoute;
    private int httpRouteMax= 0;// 最大连接个数 


    /**
     * 默认的请求编码方式
     */
    private String charset;

    private String strParaFileName="";//传递的文件名称
    private String strFilePath="";// 文件路径

    public HttpRequest(String url, Object param,Charset charset, Method method) {
		super();
		this.url = url;
		this.method = method.toString();
		this.postParam = param;
		this.charset = charset.toString();
	}

    
	public int getHttpRouteMax() {
		return httpRouteMax;
	}


	public void setHttpRouteMax(int httpRouteMax) {
		this.httpRouteMax = httpRouteMax;
	}


	public HttpRoute getHttpRoute() {
		return httpRoute;
	}


	public void setHttpRoute(HttpRoute httpRoute) {
		this.httpRoute = httpRoute;
	}


	public String getStrParaFileName() {
		return strParaFileName;
	}


	public void setStrParaFileName(String strParaFileName) {
		this.strParaFileName = strParaFileName;
	}


	public String getStrFilePath() {
		return strFilePath;
	}


	public void setStrFilePath(String strFilePath) {
		this.strFilePath = strFilePath;
	}


	

	public Object getPostParam() {
		return postParam;
	}


	public void setPostParam(Object postParam) {
		this.postParam = postParam;
	}


   


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }


	public String getCharset() {
		return charset;
	}


	public void setCharset(String charset) {
		this.charset = charset;
	}



    

   
}
